package controllerLayer;

import java.io.IOException;
import java.util.*;	


import modelLayer.Customer;
import modelLayer.Employee;
import modelLayer.Sale;
import modelLayer.SaleLinesItem;
import modelLayer.SaleRecords;

public class SaleCtr {


private SaleRecords srec;

public SaleCtr() {
srec = SaleRecords.getInstance();
}

public int createOffer(Customer customer,Employee employee, ArrayList<SaleLinesItem> sli)
{
	return srec.createOffer(customer, employee, sli);
}

public ArrayList<Sale> getOffers(){
	return srec.getOffers();
}

public String printOffers(String custID){
	return srec.printOffers(custID);
}
public Sale findSale(int Id){
	return srec.findSale(Id);
}
public int getId() {
	return srec.getId();
}
public void deleteSale(Sale o){
	srec.deleteSale(o);
}
public void save() throws IOException{
	srec.save();
}
}


